package com.fz.song.mcos.enums;

/**
 * ClassName:    CodeEnum
 * Package:    com.fz.song.mcos.enums
 * Description:
 * Datetime:    2021/1/28   18:17
 * Author:   songfazhun
 */
public enum CodeEnum {

    /**
     * 成功
     */
    OK(0, "success"),
    FAIL(1000, "fail"),
    ERROR(5000, "error"),
    DEMO_ERROR(5000, "this is demo"),
    ;


    private int code;
    private String msg;

    private CodeEnum() {
    }

    private CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
